//
//  MyCountModel.m
//  Shengzhuli
//
//  Created by 卡忙科技 on 16/8/16.
//  Copyright © 2016年 kamangkeji. All rights reserved.
//

#import "MyCountModel.h"

@implementation MyCountModel

- (instancetype)initWithDict:(NSDictionary *)dict
{
    if (self = [super init]) {
        self.balance = [dict[@"balance"] doubleValue];
        self.freezingAmount = [dict[@"freezingAmount"] doubleValue];
        self.ID = [dict[@"id"] integerValue];
        self.alreadyIncome = [dict[@"alreadyIncome"] doubleValue];
        self.totalAssets = [dict[@"totalAssets"] doubleValue];
    }
    return self;
}

+ (instancetype)objectWithDict:(NSDictionary *)dict
{
    return [[MyCountModel alloc]initWithDict:dict];
}

@end
